import request from "@/utils/request";


/**
 *
 *人脸注册
 */
export function faceRegister(formData, userId) {
  return request({
    url: '/face/face/faceRegister',
    method: 'post',
    data: formData,
    params: {
      userId
    },
    headers: {			//设置上传请求头
      'Content-Type': 'multipart/form-data'
    },
  })
}



/**
 * 人脸识别返回用户信息
 * @param formData
 * @returns {*}
 */
export function faceLogin(formData) {
  return request({
    url: '/auth/faceLogin',
    method: 'post',
    data: formData,
    headers: {			//设置上传请求头
      'Content-Type': 'multipart/form-data'
    },
  })
}
